/******************************************************************************
* ++
* Author: BaoTD1
* Module Name : CButtonTopViewLeft.h
*
* Description : Declares the CBoard Cell Windows Form
*
*
* Mod. History :	06/Jun/2013		 - BaoTD1
*                             File first created
*                             CR# PROJECT
*
*
* --
******************************************************************************/
#pragma once

#define WHITE RGB(255, 255, 255)
using namespace Gdiplus;

class CButtonTopViewLeft : public CStatic
{
private:
	 ULONG_PTR m_gdiplusToken; // GDI+ propertive
	 Color m_clrDefault;
	 Color m_clrMouseMove;

	
	 	//Draw Cell
	void DrawCell( Graphics*graphic, RECT rect );
	void DrawArrow( Graphics*graphic, RECT* apRect, INT aiDirection, Color aColorArrow );
public:
	CButtonTopViewLeft(void);
	~CButtonTopViewLeft(void);

	BOOL CreateLeftButton( const RECT& rect, CWnd* pParentWnd );
		// Event handler
    afx_msg void OnPaint();
	afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
	afx_msg void OnMouseMove( UINT, CPoint );
	afx_msg void OnLButtonDown( UINT wParam, CPoint pos );
//	afx_msg void OnLButtonUp(UINT wParam, CPoint pos);

public:

	BOOL  m_bMouseMove;
	DECLARE_MESSAGE_MAP()
};

